.class public Lrexsee/flash/FlashDialog;
.super Lrexsee/core/widget/DivDialog;
.source "FlashDialog.java"


# instance fields
.field private flashDiv:Lrexsee/flash/FlashDiv;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lrexsee/flash/FlashKeyboardParameters;Lrexsee/flash/FlashKeyboardParameters;)V
    .locals 8
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "dialogId"    # Ljava/lang/String;
    .param p3, "style"    # Ljava/lang/String;
    .param p4, "swf"    # Ljava/lang/String;
    .param p5, "swfStyle"    # Ljava/lang/String;
    .param p6, "leftKeyboard"    # Lrexsee/flash/FlashKeyboardParameters;
    .param p7, "rightKeyboard"    # Lrexsee/flash/FlashKeyboardParameters;

    .prologue
    .line 17
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "border-width:0px;background-color:transparent;"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-direct {p0, p1, p2, v5}, Lrexsee/core/widget/DivDialog;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    new-instance v5, Lrexsee/core/style/StyleSheet;

    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v6

    invoke-direct {v5, v6}, Lrexsee/core/style/StyleSheet;-><init>(Landroid/content/Context;)V

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "vertical-align:bottom;"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    move-result-object v4

    .line 20
    .local v4, "styleSheet":Lrexsee/core/style/StyleSheet;
    iget-object v5, v4, Lrexsee/core/style/StyleSheet;->orientation:Ljava/lang/String;

    invoke-virtual {v5}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v2

    .line 21
    .local v2, "ori":Ljava/lang/String;
    const-string v5, "y"

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_0

    const-string v5, "vertical"

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    :cond_0
    const/4 v5, 0x1

    move v3, v5

    .line 22
    .local v3, "orientation":I
    :goto_0
    invoke-virtual {v4}, Lrexsee/core/style/StyleSheet;->getGravity()I

    move-result v0

    .line 24
    .local v0, "gravity":I
    new-instance v1, Landroid/widget/LinearLayout;

    iget-object v5, p0, Lrexsee/flash/FlashDialog;->mContext:Landroid/content/Context;

    invoke-direct {v1, v5}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 25
    .local v1, "layout":Landroid/widget/LinearLayout;
    const/4 v5, 0x0

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 26
    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 27
    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 29
    if-eqz p6, :cond_1

    new-instance v5, Lrexsee/flash/FlashKeyboardView;

    invoke-direct {v5, p1, p0, p6}, Lrexsee/flash/FlashKeyboardView;-><init>(Lrexsee/core/browser/Browser;Lrexsee/flash/FlashDialog;Lrexsee/flash/FlashKeyboardParameters;)V

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 30
    :cond_1
    new-instance v5, Lrexsee/flash/FlashDiv;

    invoke-direct {v5, p1, p5, p4}, Lrexsee/flash/FlashDiv;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;)V

    iput-object v5, p0, Lrexsee/flash/FlashDialog;->flashDiv:Lrexsee/flash/FlashDiv;

    .line 31
    iget-object v5, p0, Lrexsee/flash/FlashDialog;->flashDiv:Lrexsee/flash/FlashDiv;

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 32
    if-eqz p7, :cond_2

    new-instance v5, Lrexsee/flash/FlashKeyboardView;

    invoke-direct {v5, p1, p0, p7}, Lrexsee/flash/FlashKeyboardView;-><init>(Lrexsee/core/browser/Browser;Lrexsee/flash/FlashDialog;Lrexsee/flash/FlashKeyboardParameters;)V

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 34
    :cond_2
    invoke-virtual {p0, v1}, Lrexsee/flash/FlashDialog;->addChild(Landroid/view/View;)V

    .line 35
    const/4 v5, 0x0

    invoke-virtual {p0, v5}, Lrexsee/flash/FlashDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 36
    new-instance v5, Lrexsee/flash/FlashDialog$1;

    invoke-direct {v5, p0, p1}, Lrexsee/flash/FlashDialog$1;-><init>(Lrexsee/flash/FlashDialog;Lrexsee/core/browser/Browser;)V

    invoke-virtual {p0, v5}, Lrexsee/flash/FlashDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 45
    return-void

    .line 21
    .end local v0    # "gravity":I
    .end local v1    # "layout":Landroid/widget/LinearLayout;
    .end local v3    # "orientation":I
    :cond_3
    const/4 v5, 0x0

    move v3, v5

    goto :goto_0
.end method

.method static synthetic access$0(Lrexsee/flash/FlashDialog;)Lrexsee/flash/FlashDiv;
    .locals 1

    .prologue
    .line 13
    iget-object v0, p0, Lrexsee/flash/FlashDialog;->flashDiv:Lrexsee/flash/FlashDiv;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/flash/FlashDialog;Lrexsee/flash/FlashDiv;)V
    .locals 0

    .prologue
    .line 13
    iput-object p1, p0, Lrexsee/flash/FlashDialog;->flashDiv:Lrexsee/flash/FlashDiv;

    return-void
.end method


# virtual methods
.method public getBrowser()Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 61
    const/4 v0, 0x0

    return-object v0
.end method

.method public keyDown(I)V
    .locals 3
    .param p1, "keyCode"    # I

    .prologue
    .line 49
    :try_start_0
    iget-object v0, p0, Lrexsee/flash/FlashDialog;->flashDiv:Lrexsee/flash/FlashDiv;

    iget-object v0, v0, Lrexsee/flash/FlashDiv;->flashView:Lrexsee/flash/FlashView;

    new-instance v1, Landroid/view/KeyEvent;

    const/4 v2, 0x0

    invoke-direct {v1, v2, p1}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v0, v1}, Lrexsee/flash/FlashView;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 52
    :goto_0
    return-void

    .line 50
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public keyUp(I)V
    .locals 3
    .param p1, "keyCode"    # I

    .prologue
    .line 55
    :try_start_0
    iget-object v0, p0, Lrexsee/flash/FlashDialog;->flashDiv:Lrexsee/flash/FlashDiv;

    iget-object v0, v0, Lrexsee/flash/FlashDiv;->flashView:Lrexsee/flash/FlashView;

    new-instance v1, Landroid/view/KeyEvent;

    const/4 v2, 0x1

    invoke-direct {v1, v2, p1}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v0, v1}, Lrexsee/flash/FlashView;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 58
    :goto_0
    return-void

    .line 56
    :catch_0
    move-exception v0

    goto :goto_0
.end method
